import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function dict(val) {
  return axios({
    url: assessCheckApi.dict,
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  })
}

// 年度计划-分页查询
export function ndjhPageList(params){
  return axios({
    url: assessCheckApi.ndjhPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划-删除
export function deleteNdjh(params){
  return axios({
    url: assessCheckApi.deleteNdjh,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划人员-删除
export function deleteNpjhRy(params){
  return axios({
    url: assessCheckApi.deleteNpjhRy,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划人员-生成人员
export function initNpjhRy(params){
  return axios({
    url: assessCheckApi.initNpjhRy,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划-相关人员-分页查询
export function ndjhRyPageList(params){
  return axios({
    url: assessCheckApi.ndjhRyPageList,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划-新增-保存
export function ndjhSave(data){
  return axios({
    url: assessCheckApi.ndjhSave,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

// 年度计划-提交
export function submitNdjh(params){
  return axios({
    url: assessCheckApi.submitNdjh,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 年度计划-附件上传
export function uploadFile(data){
  return axios({
    url: assessCheckApi.uploadFile,
    method:'post',
    data:data,
    url_1:'outside',
  })
}

